// vuex 数据持久化
const INFO_KEY = 'yi_shopping_info'

// 获取个人信息
export const getIofo = () => {
  const result = localStorage.getItem(INFO_KEY)
  // console.log(result ? JSON.parse(result) : '')
  return result ? localStorage.getItem(INFO_KEY) : ''
}
// 设置个人信息
export const setIofo = (value) => {
  localStorage.setItem(INFO_KEY, value)
}
// 移除个人信息
export const removeIofo = () => {
  localStorage.removeItem(INFO_KEY)
}
